﻿using System;
using System.Collections.Generic;

namespace School.Entities;

/// <summary>
/// 选课表
/// </summary>
public partial class Enrollments
{
    /// <summary>
    /// 选课ID
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 学生ID
    /// </summary>
    public int StudentId { get; set; }

    /// <summary>
    /// 课程ID
    /// </summary>
    public int CourseId { get; set; }

    //public virtual Courses Course { get; set; } = null!;
    public virtual ICollection<Courses> Course { get; set; } =new List<Courses>() ;


    //public virtual Students Student { get; set; } = null!;
    public virtual ICollection<Students> Student { get; set; } = new List<Students>();
}
